package com.forum.Mapper;

import com.forum.Entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
      List<Comment> getComments(String postId);

    void addComment(Comment comment);

    List<Comment> getReplyComments(String commentId);

    void addlikes(Comment comment);

    Comment getCommentById(String commentId);

    int getCommentCount();

    int getTodayComments();

    void deletePostComment(String postId);

    List<Comment> getCommentsByPostId(String postId);

    List<Comment> getCommentsByPost(String postId, String content);

    void deleteComment(String commentId);

    void deleteSunComment(String commentId);

    List<Comment> getReplies(String commentId);

    void deleteLikes(String commentId);

    void updatePostCommentCount(String postId, int totalCommentsToDelete);
}
